package com.cn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;import com.cn.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    List<Dish> selectAllByPid(Page page, @Param("name") String name, @Param("status") Integer status,
                              @Param("pid") Long pid, @Param("id") Long id);

    List<Dish> selectAllByDish(Page page, @Param("name") String name, @Param("status") Integer status,
                               @Param("categoryId") Long categoryId);

    Dish selectById(@Param("id") Long id);
}